<template>
  <div class="home">
    <!-- 轮播图 -->
    <van-swipe :autoplay="3000" indicator-color="white" class="swap">
      <van-swipe-item><img src="../assets/logo.png" alt="" style="width:100%;height:100%"></van-swipe-item>
      <van-swipe-item>2</van-swipe-item>
      <van-swipe-item>3</van-swipe-item>
      <van-swipe-item>4</van-swipe-item>
    </van-swipe>
    <!-- 支付保障。。。 -->
    <van-row class="border1">
      <van-col span="8" class="broad">
        <van-icon name="like" /><span class="Icotext">支付保障</span></van-col>

      <van-col span="8" class="broad">
        <van-icon name="shop-o " /><span class="Icotext">同城配送</span></van-col>
      <van-col span="8" class="broad">
        <van-icon name="flower-o " /><span class="Icotext">花店直送</span></van-col>
    </van-row>

    <van-row type="flex" justify="space-around" class="nav">
      <li>
        <i>
          情侣
        </i>
      </li>
      <li>
        <i>
          恋人
        </i>
      </li>
      <li>
        <i>
          朋友
        </i></li>
      <li><i>
          闺蜜
        </i></li>
      <li>
        <i>
          长辈
        </i>
      </li>
      <li>
        <i>
          赔礼
        </i>
      </li>
      <li>
        <i>
          开业
        </i>
      </li>
      <li>
        <i>进口</i>
      </li>
    </van-row>


    <van-row type="flex" justify="space-between" class="main">
      <li>
         <i>
           <img src="../assets/x.jpg" alt=""  style="width: 100%;height: 100%;">
          </i>
          <b>小美好</b>
          <p>
            1枝粉色绣球、11枝粉色玫瑰、搭配桔梗、尤加利
          </p>
          <span>
            ￥<i>399</i>
          </span>
      </li>
      <li>
          <i>
              <img src="../assets/x.jpg" alt=""  style="width: 100%;height: 100%;">
             </i>
             <b>小美好</b>
             <p>
               1枝粉色绣球、11枝粉色玫瑰、搭配桔梗、尤加利
             </p>
             <span>
               ￥<i>399</i>
             </span>
      </li>
      <li>
          <i>
              <img src="../assets/x.jpg" alt=""  style="width: 100%;height: 100%;">
             </i>
             <b>小美好</b>
             <p>
               1枝粉色绣球、11枝粉色玫瑰、搭配桔梗、尤加利
             </p>
             <span>
               ￥<i>399</i>
             </span>
      </li>
      <li>
          <i>
              <img src="../assets/x.jpg" alt=""  style="width: 100%;height: 100%;">
             </i>
             <b>小美好</b>
             <p>
               1枝粉色绣球、11枝粉色玫瑰、搭配桔梗、尤加利
             </p>
             <span>
               ￥<i>399</i>
             </span>
      </li>
      <li>
          <i>
              <img src="../assets/x.jpg" alt=""  style="width: 100%;height: 100%;">
             </i>
             <b>小美好</b>
             <p>
               1枝粉色绣球、11枝粉色玫瑰、搭配桔梗、尤加利
             </p>
             <span>
               ￥<i>399</i>
             </span>
      </li>
      <li>
          <i>
              <img src="../assets/x.jpg" alt=""  style="width: 100%;height: 100%;">
             </i>
             <b>小美好</b>
             <p>
               1枝粉色绣球、11枝粉色玫瑰、搭配桔梗、尤加利
             </p>
             <span>
               ￥<i>399</i>
             </span>
      </li>
    </van-row>
    <!-- 页脚 -->
    <foot></foot>
  </div>
</template>

<style scoped>
  .swap {
    height: 10rem;
    background-color: skyblue;
  }

  .van-row.border1 {
    border-bottom: 1px solid #ccc;
    padding: 0.1rem;
  }
  .broad{
    text-align: center
  }
  .van-icon-flower-o,
  .van-icon-shop-o,
  .van-icon-like {
    color: #fea3A3;
  
    /* padding: 1rem 0 0 0; */
  
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid#fea3a3;
    border-radius: 50%;
    text-align: center;
    line-height: 1.5rem;

  }

  .Icotext {
    color: #8f8f8f;
    font-weight: 500;
    font-size: 1.1rem;
    font-family: "宋体";
    margin-left: 0.3rem;
  
  }

  .van-col {
    height: 3rem;
    line-height: 3rem;


  }

  .van-col.round {
    background-color: red;
    border-radius: 50%;



  }

  .nav {
    padding: 0.6rem 0;
    flex-wrap: wrap;
    height: 10rem;
  }

  .nav li {
    width: 25%;
    height: 5rem;
    /* background-color: skyblue; */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 4rem;
    color: #fff;
    
  }

  .nav li i {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    cursor: pointer;
    text-align: center
  }

  .nav li:nth-child(1) i {
    background-color: #fea3A3
  }

  .nav li:nth-child(2) i {
    background-color: #F57C7C
  }

  .nav li:nth-child(3) i {
    background-color: #7FEBD8
  }

  .nav li:nth-child(4) i {
    background-color: #E9A1E3
  }

  .nav li:nth-child(5) i {
    background-color: #81a1e3
  }

  .nav li:nth-child(6) i {
    background-color: #F9b17b
  }

  .nav li:nth-child(7) i {
    background-color: #e4569c
  }

  .nav li:nth-child(8) i {
    background-color: #c855c3
  }

  .main {
    padding: 1rem 1rem 3rem 1rem;
    background-color: #efeff4;
    flex-wrap: wrap;
    
  }

  .main li {
    /* height: 15rem; */
    width: 40%;
    background-color: #fff;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    padding:0 1rem;
    align-items: center;
  
    
  }
  .main li i{
    height:10rem;
    width: 100%;
  }
  .main li b{
      font-weight: 600;
      color: #707070
  }
  .main li p{
    text-align: left;
    font-size: 0.8rem;
    color: #ccc;
  }
  .main li span{
    color: #fd9090;
    font-size: 1.5rem;
  }
  
</style>


<script>
  // @ is an alias to /src
  import foot from "@/components/footer.vue";

  export default {
    data() {
      return {

      }
    },
    name: "home",
    components: {
      foot
    }
  };
</script>